package com.orphan.marketBack.controller;

import com.orphan.marketBack.po.OrderGoodsTest;
import com.orphan.marketBack.service.OrderGoodsTestService;
import com.orphan.marketBack.service.impl.OrderGoodsTestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class OrderGoodsTestController {
    @Autowired
    OrderGoodsTestService orderGoodsTestService;

    @RequestMapping("All")
    public List<OrderGoodsTest> All(){
        return orderGoodsTestService.All();
    }

    @PostMapping("selectByID")
    public List<OrderGoodsTest> selectByID(OrderGoodsTest orderGoodsTest){
        return orderGoodsTestService.selectByID(orderGoodsTest);
    }
}
